﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Linq;

namespace MotionControl.Modules.PLC.Business
{
    public class AxisPositions: INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler PropertyChanged;
        private void OnPropertyChanged(string info)
        {
            var handler = PropertyChanged;
            handler?.Invoke(this, new PropertyChangedEventArgs(info));
        }
        private float _topCamAxisPos;
        public float TopCamAxisPos
        {
            get { return _topCamAxisPos; }
            set
            {
                if (_topCamAxisPos == value)
                    return;
                _topCamAxisPos = value;
                OnPropertyChanged("TopCamAxisPos");
            }
        }

        private float _bottomCamAxisPos;
        public float BottomCamAxisPos
        {
            get { return _bottomCamAxisPos; }
            set
            {
                if (_bottomCamAxisPos == value)
                    return;
                _bottomCamAxisPos = value;
                OnPropertyChanged("BottomCamAxisPos");
            }
        }

        private float _topElevatingAxisPos;
        public float TopElevatingAxisPos
        {
            get { return _topElevatingAxisPos; }
            set
            {
                if (_topElevatingAxisPos == value)
                    return;
                _topElevatingAxisPos = value;
                OnPropertyChanged("TopElevatingAxisPos");
            }
        }

        private float _lightElevatingAxisPos;
        public float LightElevatingAxisPos
        {
            get { return _lightElevatingAxisPos; }
            set
            {
                if (_lightElevatingAxisPos == value)
                    return;
                _lightElevatingAxisPos = value;
                OnPropertyChanged("LightElevatingAxisPos");
            }
        }
    }
}